from django.urls import path
from django.conf.urls import url, include
from rest_framework.routers import SimpleRouter

from .views import CommentlikeViewSet, CommentViewSet

app_name = 'comment'
urlpatterns = [
    path('<int:id>/like/', CommentlikeViewSet.as_view()),  # 点赞
]

router = SimpleRouter()
router.register('', CommentViewSet)  # 个人评论操作
urlpatterns += router.urls
